﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Plexi
{
	/// <summary>Represents a rectangular area on the surface of a celestial body.</summary>
	public class Area
	{
		public int BodyIndex { get; set; }
		public float LatMin { get; set; }
		public float LatMax { get; set; }
		public float LonMin { get; set; }
		public float LonMax { get; set; }

		public bool Contains(int bodyIndex, double lat, double lon)
		{
			return bodyIndex == BodyIndex &&
				lat >= LatMin && lat <= LatMax && lon >= LonMin && lon <= LonMax;
		}
	}
}
